package com.multiplayer;

import java.net.Socket;
import java.util.HashMap;
import java.util.Map;

public class Participator {

	String userId;//id
	String userName;//姓名
	boolean isPrepare=false;//是否准备
	boolean isFinish=false;//是否完成
	Integer seatNumber=0;//座位号
	Map<Integer, String> result=new HashMap<Integer, String>();//每题对应的答案
	Socket socket;


	public Integer getSeatNumber() {
		return seatNumber;
	}
	public void setSeatNumber(Integer seatNumber) {
		this.seatNumber = seatNumber;
	}
	public Socket getSocket() {
		return socket;
	}
	public void setSocket(Socket socket) {
		this.socket = socket;
	}
	public String getUserId() {
		return userId;
	}
	public void setUserId(String userId) {
		this.userId = userId;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public boolean isPrepare() {
		return isPrepare;
	}
	public void setPrepare(boolean isPrepare) {
		this.isPrepare = isPrepare;
	}
	public boolean isFinish() {
		return isFinish;
	}
	public void setFinish(boolean isFinish) {
		this.isFinish = isFinish;
	}
	public Map<Integer, String> getResult() {
		return result;
	}
	public void setResult(Map<Integer, String> result) {
		this.result = result;
	}

	@Override
	public String toString() {
		return "Participator [userId=" + userId + ", userName=" + userName
				+ ", isPrepare=" + isPrepare + ", isFinish=" + isFinish
				+ ", seatNumber=" + seatNumber + ", result=" + result.toString() + "]";
	}


}
